package com.qf.service.impl;
import com.qf.dao.AccountDao;
import com.qf.service.AccountService;
import org.springframework.stereotype.Component;

/**
 * @ClassName AccountServiceImpl
 * @Description TODO
 * @Author 86181
 * @Date 2022/8/26 17:36
 * @Version 1.0
 **/
@Component
public class AccountServiceImpl implements AccountService {
//    public void addAccount() {
//        AccountDao accountDao = (AccountDao) BeanFactory.getBean("accountDao");
//        System.out.println(accountDao);
//        accountDao.addAccount();
//    }
    AccountDao accountDao;

    public void addAccount() {
        accountDao.addAccount();
    }
}
